package com.vnp.cooking.bean;

import java.util.ArrayList;
import java.util.LinkedHashMap;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

public class ObjCookpad implements Parcelable {
	String id;

	String nameCookpad;
	String urlAvatar;
	String urlImageCookpad;
	String action;

	String idNamePerson;

	String namePersonCookpad;
	
	String urlComment;
	String urlShareFB;

	int viewedCookpad;
	String createdDateCookpad;
	String ratingTotalValue;

	int ratingTotalCount;
	float ratingAg;
	int likeCookpad;
	int timeCook;
	String thoigianNauan;

	int commentCookpad;
	String descriptionCookpad;
	int personCookedCookpad;
	int myCookedCookpad;
	int ingredientsForPerson;
	ArrayList<ObjNguyenlieu> objNguyenlieus;
	// LinkedHashMap<String, String> ingredientsCookpad;
	ArrayList<ObjCachlam> objCachlams;

	public ObjCookpad() {
	};

	public ObjCookpad(Parcel in) {
		id = in.readString();
		nameCookpad = in.readString();
		urlImageCookpad = in.readString();
		idNamePerson = in.readString();
		namePersonCookpad = in.readString();
		urlComment = in.readString();
		urlShareFB = in.readString();
		viewedCookpad = in.readInt();
		createdDateCookpad = in.readString();
		ratingTotalValue = in.readString();
		ratingTotalCount = in.readInt();
		ratingAg = in.readInt();
		likeCookpad = in.readInt();
		thoigianNauan = in.readString();
		commentCookpad = in.readInt();
		descriptionCookpad = in.readString();
		personCookedCookpad = in.readInt();
		myCookedCookpad = in.readInt();
		ingredientsForPerson = in.readInt();
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(nameCookpad);
		dest.writeString(urlImageCookpad);
		dest.writeString(idNamePerson);
		dest.writeString(namePersonCookpad);
		dest.writeString(urlComment);
		dest.writeString(urlShareFB);
		dest.writeInt(viewedCookpad);
		dest.writeString(createdDateCookpad);
		dest.writeString(ratingTotalValue);
		dest.writeInt(ratingTotalCount);
		dest.writeFloat(ratingAg);
		dest.writeInt(likeCookpad);
		dest.writeString(thoigianNauan);
		dest.writeInt(commentCookpad);
		dest.writeString(descriptionCookpad);
		dest.writeInt(personCookedCookpad);
		dest.writeInt(myCookedCookpad);
		dest.writeInt(ingredientsForPerson);

	}

	/*
	 * public ObjCookpad(String nameCookpad, String urlImageCookpad, String
	 * namePersonCookpad, int viewedCookpad, int likedCookpad, int timeCook){
	 * super(); this.nameCookpad = nameCookpad; this.urlImageCookpad =
	 * urlImageCookpad; this.namePersonCookpad = namePersonCookpad;
	 * this.viewedCookpad = viewedCookpad; this.likeCookpad = likedCookpad;
	 * this.timeCook = timeCook; }
	 */

	public ObjCookpad(String urlAvatar, String nameCookpad,
			String urlImageCookpad, String namePersonCookpad,
			int viewedCookpad, int likedCookpad, int timeCook) {
		super();
		this.urlAvatar = urlAvatar;
		this.nameCookpad = nameCookpad;
		this.urlImageCookpad = urlImageCookpad;
		this.namePersonCookpad = namePersonCookpad;
		this.viewedCookpad = viewedCookpad;
		this.likeCookpad = likedCookpad;
		this.timeCook = timeCook;
	}

	// sudung de hien thi gridiview
	public ObjCookpad(String urlImageCookpad) {
		super();
		this.urlImageCookpad = urlImageCookpad;
	}
	
	
	public String getUrlShareFB() {
		return urlShareFB;
	}

	public void setUrlShareFB(String urlShareFB) {
		this.urlShareFB = urlShareFB;
	}
	
	
	public String getUrlComment() {
		return urlComment;
	}

	public void setUrlComment(String urlComment) {
		this.urlComment = urlComment;
	}
	
	
	public String getIdNamePerson() {
		return idNamePerson;
	}

	public float getRatingAg() {
		return ratingAg;
	}

	public void setRatingAg(float ratingAg) {
		this.ratingAg = ratingAg;
	}

	public void setRatingTotalCount(int ratingTotalCount) {
		this.ratingTotalCount = ratingTotalCount;
	}

	public void setIdNamePerson(String idNamePerson) {
		this.idNamePerson = idNamePerson;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getThoigianNauan() {
		return thoigianNauan;
	}

	public void setThoigianNauan(String thoigianNauan) {
		this.thoigianNauan = thoigianNauan;
	}

	public String getUrlAvatar() {
		return urlAvatar;
	}

	public void setUrlAvatar(String urlAvatar) {
		this.urlAvatar = urlAvatar;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public int getTimeCook() {
		return timeCook;
	}

	public void setTimeCook(int timeCook) {
		this.timeCook = timeCook;
	}

	public String getNameCookpad() {
		return nameCookpad;
	}

	public void setNameCookpad(String nameCookpad) {
		this.nameCookpad = nameCookpad;
	}

	public String getUrlImageCookpad() {
		return urlImageCookpad;
	}

	public void setUrlImageCookpad(String urlImageCookpad) {
		this.urlImageCookpad = urlImageCookpad;
	}

	public int getRatingTotalCount() {
		return ratingTotalCount;
	}

	public String getNamePersonCookpad() {
		return namePersonCookpad;
	}

	public void setNamePersonCookpad(String namePersonCookpad) {
		this.namePersonCookpad = namePersonCookpad;
	}

	public int getViewedCookpad() {
		return viewedCookpad;
	}

	public void setViewedCookpad(int viewedCookpad) {
		this.viewedCookpad = viewedCookpad;
	}

	public String getCreatedDateCookpad() {
		return createdDateCookpad;
	}

	public void setCreatedDateCookpad(String createdDateCookpad) {
		this.createdDateCookpad = createdDateCookpad;
	}

	public int getLikeCookpad() {
		return likeCookpad;
	}

	public String getRatingTotalValue() {
		return ratingTotalValue;
	}

	public void setRatingTotalValue(String ratingTotalValue) {
		this.ratingTotalValue = ratingTotalValue;
	}

	public void setLikeCookpad(int likeCookpad) {
		this.likeCookpad = likeCookpad;
	}

	public int getCommentCookpad() {
		return commentCookpad;
	}

	public void setCommentCookpad(int commentCookpad) {
		this.commentCookpad = commentCookpad;
	}

	public String getDescriptionCookpad() {
		return descriptionCookpad;
	}

	public void setDescriptionCookpad(String descriptionCookpad) {
		this.descriptionCookpad = descriptionCookpad;
	}

	public int getPersonCookedCookpad() {
		return personCookedCookpad;
	}

	public void setPersonCookedCookpad(int personCookedCookpad) {
		this.personCookedCookpad = personCookedCookpad;
	}

	public int getMyCookedCookpad() {
		return myCookedCookpad;
	}

	public void setMyCookedCookpad(int myCookedCookpad) {
		this.myCookedCookpad = myCookedCookpad;
	}

	public int getIngredientsForPerson() {
		return ingredientsForPerson;
	}

	public void setIngredientsForPerson(int ingredientsForPerson) {
		this.ingredientsForPerson = ingredientsForPerson;
	}

	/*
	 * public LinkedHashMap<String, String> getIngredientsCookpad() { return
	 * ingredientsCookpad; } public void setIngredientsCookpad(
	 * LinkedHashMap<String, String> ingredientsCookpad) {
	 * this.ingredientsCookpad = ingredientsCookpad; }
	 */
	public ArrayList<ObjNguyenlieu> getObjNguyenlieus() {
		return objNguyenlieus;
	}

	public void setObjNguyenlieus(ArrayList<ObjNguyenlieu> objNguyenlieus) {
		this.objNguyenlieus = objNguyenlieus;
	}

	public ArrayList<ObjCachlam> getObjCachlams() {
		return objCachlams;
	}

	public void setObjCachlams(ArrayList<ObjCachlam> objCachlams) {
		this.objCachlams = objCachlams;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public static final Parcelable.Creator<ObjCookpad> CREATOR = new Parcelable.Creator<ObjCookpad>() {
		public ObjCookpad createFromParcel(Parcel in) {
			return new ObjCookpad(in);
		}

		public ObjCookpad[] newArray(int size) {
			return new ObjCookpad[size];
		}
	};

}
